package com.flyxiang.workflow.domain.bo;

import com.baomidou.mybatisplus.core.conditions.update.Update;
import com.flyxiang.workflow.domain.WfDynamicData;
import com.flyxiang.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

import java.util.Map;

/**
 * 动态表单数据业务对象 wf_dynamic_data
 *
 * @author daojiang
 * @date 2024-11-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = WfDynamicData.class, reverseConvertGenerate = false)
public class WfDynamicDataBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "主键不能为空", groups = Update.class)
    private Long id;

    /**
     * 表单数据
     */
    @NotEmpty(message = "表单数据不能为空")
    private Map<String,Object> formData;

    /**
     * 业务状态（数据字典值）
     */
    private String status;


}
